<?php
	if($data)
	{
       
     
		echo '<table width = "795" cellpadding = "2" cellspacing = "2" border = "0" align = "center" bgcolor = "#D4D0C8">';
			echo '<tr> <th colspan = "3"> DANH SÁCH LOẠI HÀNG </th> </tr>';
			echo '<tr class = "list"> 
				<td width = "200" valign = "top"> <div align = "center"> <b> Tên loại hàng </b> </div> </td>
				<td width = "80" valign = "top"> <div align = "center"> <img src="public/images/b_edit.png"/> Sửa</div> </td>
				<td width = "80" valign = "top"> <div align = "center"> <img src="public/images/b_drop.png"/> Xóa </div> </td>
			</tr>';
		foreach ($data['list'] as $key => $value)   
			echo '<tr> 
				<td width = "500" valign = "top"> <div>'.$value['TenLH'].'</div> </td>
				<td width = "100" valign = "top"> <div align = "center"> <a href = "admin.php?mod=updateloaihang&ma='.$value['MaLH'].'"> Sửa </a></div> </td>
				<td width = "100" valign = "top"> <div align = "center"> <a href = "admin.php?mod=delloaihang&ma='.$value['MaLH'].'">Xóa </a> </div> </td>
			</tr>';
			
		}
		echo '</table>';
		
?>